<h1>Edit Account</h1>

<?php include_partial('newaccount', array('form' => $form));?>

<h1>Istoric Comenzi</h1>
<div>
	<table>
	<?php $i = 0; foreach($comenzi as $comanda):?>
		<tr><th>Data efectuare comanda:</th><th>Pret final:</th><th>Carti comandate:</th></tr>
		<tr>
		<td><?php echo $comanda->getDataComanda();?></td>
		<td><?php echo $comanda->getPretFinal();?></td>
		<td><table>
			<?php foreach($cartiPeComanda[$i] as $carte)?>
			<tr><td><?php echo $carte->getTitlu().' - ';?></td><td><?php echo $carte->getAutori(); $i++;?></td></tr>
		</table></td>
		<tr>
	<?php endforeach;?>
	</table>
</div>
